<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/26
 * Time: 14:55
 */
global $_W,$_GPC;
$userId = $_GPC["userId"];
if(empty($userId)){
    include $this->template('app_winning_form');
}else{
    $nobutton = $_GPC["nobutton"];
    if(empty($nobutton)){
        $nobutton = "block";
    }
    $userIdArr = explode(',',$userId);
    $where = '';
    $where .= "AND a.id  IN  ('".implode("','", $userIdArr)."')";
    $lottoryUser = pdo_fetchall("SELECT a.avatar,a.nick_name,b.luck_name,b.tag_name,a.deptname,a.mobile FROM ".tablename($this->user_table)."a, ims_meepo_xianchang_lottory_award b ,ims_meepo_xianchang_lottory_user c WHERE a.id = c.user_id and b.id = c.lottory_id  {$where}",array());
    include $this->template('app_winning_result');
}
